<?php
/**
 * Wrapper object for validation errors.
 *
 */
class ValidationError {
	
	private $fieldName;
	private $value;
	private $errorMessage;
	
	public function __construct($fieldName, $value, $errorMessage) {
		$this->fieldName 	= $fieldName;
		$this->value		= $value;
		$this->errorMessage	= $errorMessage;
	}	

	public function getFieldName() {
		return $this->fieldName;	
	}
	
	public function getValue() {
		return $this->value;
	}
	
	public function getErrorMessage() {
		return $this->errorMessage;
	}
	

}
?>